/**
 * Created by Administrator on 2015/8/11.
 */
$(document).ready(function(){
    var date=new Date();
    var $nav=$("nav");
    var $container=$(".container");
    var $time=$("#time");
    $container.css("margin-top",($nav.height()-$container.height())/2);
    window.onload= function () {
        $time.css({
            top:$nav.height()-$time.height()/2+200
        });
        $("#labTime").css({
            'float':'right',
            'margin-right':25,
            'margin-top':3
        });
        $("#labDay").css({
            'float':'right',
            'margin-right':30,
            'margin-top':-5
        });
        $("#hour").text(date.getHours());
        $("#minute").text(date.getMinutes());
    }
    $(".glyphicon-comment").closest("a").on("click",function(){
        $(this).closest("div").next().toggle();
    })
})